import { defineStore } from 'pinia'

export type CommandType = '' | 'TokenExpired'

const id = 'pinia-store-app'

const store = defineStore(id, {
  state: () => ({
    command: '' as CommandType,
    lastMessage: ''
  }),
  actions: {},
  persist: {
    key: id
  }
})

export default store
